package file;

import java.io.BufferedInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;

public class NoteDemo {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner s = new Scanner(System.in);
        PrintWriter pw = new PrintWriter("note2.txt");
        System.out.println("开始书写");
        String str;
        while (!("exit".equals((str = s.nextLine())))) {
            pw.println(str);
        }
        System.out.println("下次见");
        pw.close();

    }
}
